 <link href="<?= STATICURL; ?>css/bootstrap.min.css" rel="stylesheet" />
    <link id="bootstrap-rtl-link" href="" rel="stylesheet" />
    <link href="<?= STATICURL; ?>css/font-awesome.min.css" rel="stylesheet" />
    <!--Fonts-->
    <!--Beyond styles-->
    <link id="beyond-link" href="<?= STATICURL; ?>css/beyond.min.css" rel="stylesheet" type="text/css" />
    <link href="<?= STATICURL; ?>css/demo.min.css" rel="stylesheet" />
    <link rel="stylesheet" type="text/css" href="<?=STATICURL;?>css/oss_style.css"/>
    <style>
        input[type=radio] {
            position:static;
            opacity: 1;
        }
    </style>
    <div class="page-content">
        <div class="page-body">
        <div style="float: left;">
            <div >
                <div id="horizontal-form">
				<?php if($questionList):?>
                <?php foreach ($questionList as $key => $question):?>
                    <div class="row question_place">
                        <div class="col-md-12">
                            <label>Q<?=($key+1)?>：<?=$question['questionTitle']?>&nbsp;&nbsp;<i style="color:blue;"><?=$question['single_question_point']?>积分</i>&nbsp;&nbsp;<i style="color:blue;"><?=$question['single_question_money']?>元奖金</i></label>
                            
                            <?php if($question['questionType'] == 1):?>
                                <?php foreach ($question['option'] as $opkey => $option):?>
                                <div >
                                    <label>
                                        <input type="radio" name=""  <?php if($question['answer'] == ($opkey+1)):?>checked="checked"<?php else:?>disabled="disabled"<?php endif;?> />
                                        <span style="<?php if(($question['answer']) == $opkey+1):?>color:red;<?php endif;?>"><?=$option['optionTitle']?></span>
                                    </label>
                                </div>
                                <?php endforeach;?>
                            <?php elseif ($question['questionType'] == 2):?>
                                <div class="pull-left">
                                <label>
                                    <input type="text" name="title" disabled="disabled"  class="form-control" value="<?=$question['answer']?>"><br />答案：<i style="color:green;"><?=$question['answer']?></i>
                                </label>
                                </div>
                            <?php elseif ($question['questionType'] == 3):?>
								
                                <div>
									<?php if($tupianshenhe == 1):?>
									 <div class="">
                                        用户<?=$question['AccountID']?>答案：
                                        <a href="<?= OSSHOST.$question['user_answer']?>" target="_blank"><img width="200" height="100" src="<?= OSSHOST.$question['user_answer']?>"></a>
                                    </div>
									<?php endif;?>
                                    <div class="" style="margin-top:10px;margin-left:140px;">
                                        答案：
                                        <a href="<?= OSSHOST.$question['answer']?>" target="_blank">
                                            <img width="200" height="100" src="<?= OSSHOST.$question['answer']?>">
                                        </a>
                                    </div>
                                   <?php if($tupianshenhe == 1):?>
                                    <div class="pull-left" style="margin-left: 10px;line-height: 100px;">
                                        <?=$question['Createtime']?>
                                    </div>
                                    <div data_answerid="<?=$question['answerID']?>" data_accountid="<?=$question['AccountID']?>" data_qid="<?=$question['questionID']?>" data_newsid="<?=$question['newsID']?>"  class="pull-right" style="line-height: 100px;">
                                        <?php if($question['isright'] == 0):?>
                                        <a data_isright="1" class="js_isright">正确</a>|<a class="js_isright" data_isright="-1">错误</a>
                                        <?php elseif($question['isright'] == 1):?>
                                            <span style="color:green;">正确</span>
                                        <?php elseif($question['isright'] == -1):?>
                                            <span style="color:red;">错误</span>
                                        <?php endif;?>
                                    </div>
									<?php endif;?>
                                </div>
                            <?php endif;?>
                            
                            <div class="horizontal-space"></div>
                        </div>
                    </div>
                    <hr/>
                <?php endforeach;?>
				<?php else:?>
				<div class="row" style="text-align:center;">暂时没有数据</div>
				<?php endif;?>
                </div>
            </div>
        </div>
<?php require_once ADMINVIEWPATH.'admin_footer.php'; ?>
<script>

$(".js_isright").on("click",function(){
    var questionID = $(this).parent().attr("data_qid");
    var newsID = $(this).parent().attr("data_newsid");
    var isright = $(this).attr("data_isright");
    var AccountID = $(this).parent().attr("data_accountid");
    var answerID = $(this).parent().attr("data_answerid");
    if(questionID == "" || newsID=="" || AccountID == "" || answerID=="")
    {
        layer.msg('参数错误');
        return false;
    } 
    if (confirm("确定判断吗")) {
        $.post("/luckydog/examination/estimate",{answerID:answerID,AccountID:AccountID,questionID:questionID,newsID:newsID,isright:isright,},function(data){
            if(data.code == 200)
            {
                layer.msg("成功");
                window.parent.location.reload();
            }else{
                layer.msg(data.data.message);
            }
        },"json");
    }
    
});


   



</script>